<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:a="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:ctg="http://www.crotouristguide.com/taglib">
<body>
<ui:composition template="/templates/layout/columns_1.xhtml">
	<ui:define name="column1">
		<s:div styleClass="title"><h1><h:outputText
			value="#{messages['title.objektfeedback.list']}" /> <s:div
			styleClass="subtitle" /></h1></s:div>

		<h:outputText
			value="#{messages['label.objektfeedback.label.nocomments']} "
			rendered="#{dojmovi.rowCount == 0}" />

		<rich:dataTable id="objektiList" rows="10" columnClasses="rich-separator,rich-separator" styleClass="list"
			value="#{dojmovi}" var="dojam" width="100%"
			rendered="#{dojmovi.rowCount > 0}">

			<h:column>
				<h3><h:outputText value="#{dojam.naslov}" /></h3>
				<p><h:outputText value="#{dojam.komentar}" />
				<s:span styleClass="note">
					<h:outputText value="#{messages['label.objektfeedback.by']} " />
					<h:outputText value="#{dojam.korisnik.username}" />
					<h:outputText value=" #{messages['label.objektfeedback.on']} " />
					<h:outputText value="#{dojam.datum}" />
				</s:span></p>
				<s:link value="#{messages['label.edit']}"
					rendered="#{identity.hasRole('1') and param.idMjesta != null}"
					action="#{dojamAction.editSetup('backToDojmoviMjesta')}" styleClass="special2"/>
				<s:link value="#{messages['label.edit']}"
					rendered="#{identity.hasRole('1') and param.idOtoka != null}"
					action="#{dojamAction.editSetup('backToDojmoviOtoci')}" styleClass="special2"/>
				<s:link value="#{messages['label.edit']}"
					rendered="#{identity.hasRole('1') and param.idParka != null}"
					action="#{dojamAction.editSetup('backToDojmoviParkovi')}" styleClass="special2"/>
				<s:link value="#{messages['label.edit']}"
					rendered="#{identity.hasRole('1') and param.idObjekta != null}"
					action="#{dojamAction.editSetup('backToDojmoviObjekti')}" styleClass="special2"/>
				<s:div styleClass="rich-separator"></s:div>
				<br />
			</h:column>
		</rich:dataTable>
	</ui:define>
	<ui:define name="column2">

	</ui:define>
</ui:composition>
</body>
</html>